//
//  ZQDemoViewController.swift
//  新浪微博
//
//  Created by huami on 2019/10/11.
//  Copyright © 2019 huami. All rights reserved.
//

import UIKit

class ZQDemoViewController: ZQBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        title = "第 \(navigationController?.children.count ?? 0)个"
    }
    
    @objc private func showNext() {
             let vc = ZQDemoViewController()
     
             navigationController?.pushViewController(vc, animated: true)
         }
}

extension ZQDemoViewController {
    override func setupTableView() {
        super.setupTableView()
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(showNext))
    }
}
